/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chapter5;

/**
 *
 * @author Denise Carolina
 */
public class AssertionExamples {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        assert true;
        System.out.println("Testing assertions");
//        assert false : "Assert false won't pass";
        assert true: new Integer(1);

        int x = 0;
//        assert false: x;
        assert true: x = 2;
        assert 1 == 1: new AssertionExamples();

        int y = 9;
        assert y > x: "y: " +y+ " is less than x: " + x;
        assert y < x: "y: " +y+ " is more than x: " + x;
    }



}
